package mlog

import "os"

var StdLog = NewLogger(os.Stderr, LevelDebug)

func SetLogFile(fileDir string, fileName string) {
	StdLog.SetLogFile(fileDir, fileName)
}

func Debugf(format string, v ...interface{}) {
	StdLog.Debugf(format, v...)
}

func Debug(v ...interface{}) {
	StdLog.Debug(v...)
}

func Infof(format string, v ...interface{}) {
	StdLog.Infof(format, v...)
}

func Info(v ...interface{}) {
	StdLog.Info(v...)
}

func Warnf(format string, v ...interface{}) {
	StdLog.Warnf(format, v...)
}

func Warn(v ...interface{}) {
	StdLog.Warn(v...)
}

func Errorf(format string, v ...interface{}) {
	StdLog.Errorf(format, v...)
}

func Error(v ...interface{}) {
	StdLog.Error(v...)
}

func Fatalf(format string, v ...interface{}) {
	StdLog.Fatalf(format, v...)
}

func Fatal(v ...interface{}) {
	StdLog.Fatal(v...)
}

func Panicf(format string, v ...interface{}) {
	StdLog.Panicf(format, v...)
}

func Panic(v ...interface{}) {
	StdLog.Panic(v...)
}
